import storage from "../storage"
export default {
	saveUserName(state, username){
		state.username = username
		storage.setItem('username',username)
	},
	saveToken(state, token){
		state.token = token
		storage.setItem('token',token)
	},
	saveUser(state, user){
		state.user = user
		storage.setItem('user',user)
	}
}
